<template>
    <el-table-column  align="left" v-bind="$attrs" v-on="$listeners"  :width="width"  :formatter="myFormatter"/>
</template>
<script>
    export default {
        name:"MySwitchColumn",
        props:{
          width:{
              type:String,
              default:"80"
          }
        },
        methods:{
            myFormatter(row){
                return row[this.$attrs.prop]?"是":"否"
            }
        }
    }
</script>
